module Sk_animate {
    // 淡入淡出
    export function fadeIn(t, e, n: number = 800, cb = () => {}) {
        egret.Tween.get(t).to({alpha: 0}, n)
        egret.Tween.get(e).to({alpha: 1}, n).call(cb)
    }

    // 缩放
    export function scale(target, n: number = 800) {
        egret.Tween.get(target, {loop: true})
        .to({scaleX:1.05,scaleY:1.05},n / 2)
        .to({scaleX:1,scaleY:1},n / 2)
    }
}